package com.syan.learn.optimization.ch02.decorator;

public class PacketHTTPHeaderCreator extends PacketDecorator {

	public PacketHTTPHeaderCreator(IPacketCreator component) {
		super(component);
	}

	@Override
	public String handleContent() {
		StringBuffer buffer = new StringBuffer();
		buffer.append("Cache-Control:no-cache\n");
		buffer.append(component.handleContent());
		return buffer.toString();
	}

}
